package com.entity;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.Version;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author wty
 * @since 2022-01-04
 */
@Data
@Accessors(chain = true)
public class Card extends Model<Card> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @TableField("create_time")
    private Integer createTime;
    /**
     * 视频地址
     */
    @TableField("video_addr")
    private String videoAddr;
    /**
     * 文章连接
     */
    @TableField("article_url")
    private String articleUrl;
    /**
     * 标题
     */
    private String title;
    /**
     * 副标题
     */
    private String transcript;
    /**
     * 引用的次数
     */
    private Integer quote;
    /**
     * 状态
     */
    private Integer state;
    private Integer collect;
    /**
     * 卡组
     */
    @TableField("parent_cart_id")
    private Integer parentCartId;
    /**
     * 样式
     */
    private Integer style;
    /**
     * 卡片内容
     */
    private String content;
    @TableField("img_url")
    private String imgUrl;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
